<template>
  <div>
    <router-view v-slot="{ Component,route }">
      <keep-alive>
        <component v-if="$route.meta && $route.meta.keepAlive" :is="Component"
                   :key="route.path"></component>
      </keep-alive>
      <component v-if="!($route.meta.keepAlive)" :is="Component" :key="route.path"></component>
    </router-view>
  </div>
</template>

<script setup>
</script>

<style lang="scss" scoped>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;

  img {
    width: 150px;
  }
}
</style>
